
package com.seguridad.ws.entidad;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <pre>
 * &lt;complexType name="persona">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="apellido" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="dni" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         &lt;element name="nombre" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "persona", propOrder = {
    "apellido",
    "dni",
    "nombre"
})
public class Persona {

    @XmlElement(required = true)
    protected String apellido;
    protected long dni;
    @XmlElement(required = true)
    protected String nombre;

    public String getApellido() {
        return apellido;
    }

    public void setApellido(String value) {
        this.apellido = value;
    }

    public long getDni() {
        return dni;
    }

    public void setDni(long value) {
        this.dni = value;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String value) {
        this.nombre = value;
    }

    @Override
    public String toString() {
    	return nombre + " " + apellido + " (DNI " + dni + ")";
    }
}
